import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入样式
import '@/styles/common.less'
// 引用全局组件注册
import Componentser from '@/components'
import direactivePlugin from '@/direactives'

// 测试一下axios
// import request from '@/utils/request'

// // 触发mutations函数 引起插件自动同步
// setTimeout(() => {
//   store.commit('user/setProfile')
// }, 2000)

// request('/login', 'post', {
//   account: 18610848230,
//   password: 123456
// }).then(res => {
//   console.log('接口可以', res)
// })

createApp(App)
  .use(store)
  .use(router)
  .use(Componentser)
  .use(direactivePlugin).mount('#app')
